package com.xian.service;

import com.xian.dao.PermissionMapper;
import com.xian.pojo.Permission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PermissionServiceImpl implements PermissionService{
    @Autowired
    private PermissionMapper permissionMapper;

    // 查询全部资源权限
    public List<Permission> findAll() {
        return permissionMapper.findAll();
    }
    // 添加资源权限
    public int save(Permission permission) {
        return permissionMapper.save(permission);
    }
}
